import http from '../utils/http.js'
const order = {
	login(data) {
		return http.post(`/user/login`, data);
	},
	find(merchantId, status) {
		return http.get(`/order/findByMerchantId?merchantId=${merchantId}&status=${status}`);
	},
	findById(id) {
		return http.get(`/order/findById?id=${id}`);
	},
	operation(id, status) {
		return http.put(`/order/operation?id=${id}&status=${status}`);
	},
	findCountByMerchantId(id) {
		return http.get(`/order/findCountByMerchantId?merchantId=${id}`);
	},
	findTodyByMerchantId(id) {
		return http.get(`/order/findTodyByMerchantId?merchantId=${id}`);
	}
}

export default order;
